-- GENERATED SPELL FOR [Bloodpetal Flayer] --


function spell0_6510(pUnit, Event) --@Flaying Vine,n/a--
pUnit:FullCastSpellOnTarget(14112,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6510', 0, 1)
end

function Sorts_6510(pUnit, Event)
local choix_sorts_6510 = math.random(0, 0)
if choix_sorts_6510 == 0 then
pUnit:RegisterEvent('spell0_6510', 1, 1)
end
end

function mob6510_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6510', math.random(1500, 3000), 1)
end

function mob6510_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6510_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6510_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6510, 1, 'mob6510_Action')
RegisterUnitEvent(6510, 2, 'mob6510_Leave')
RegisterUnitEvent(6510, 3, 'mob6510_Kill')
RegisterUnitEvent(6510, 4, 'mob6510_Die')
